<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>	
	<h6><kbd>&nbsp;添加页面控件&nbsp;</kbd></h6>
		<form class="has-success alert alert-info" method="post" action="{:U(MODULE_NAME.'/Controls/createHandle')}" enctype="multipart/form-data">
			<label for="">选择控件</label>
			<select name="controlId[]" class="form-control select-inverse-dropdown" multiple="multiple" >
				<foreach name="controls" item="c">
					<option value="{$c.id}">{$c.description}</option>
				</foreach>
			</select>
			<label for="txt_sortName">显示标题</label>
			<input id="txt_sortName" name="title" value="{$sort.name}"  type="text" class="form-control" placeholder="请输入分类名称" required />
			<label for="txt_description">数据数据</label>
			<input id="txt_description" type="number" value="10"  name="count" class="form-control" placeholder="显示的最大数据量" required />
						<label for="txt_description">排序（优先级）</label>
			<input id="txt_description" type="number" value="1"   name="number" class="form-control" placeholder="数量越大越靠前" required />
					<label for="">选择页面</label>

			<select name="page" class="form-control select-inverse-dropdown" >
					<option value="Index">首页</option>
					<option value="List">列表页</option>
					<option value="View">详情页</option>
			</select><br/>
			<label class="control-label" for="formGroupInputSmall">是否可见</label>
		    <input  type="checkbox"  value="n" name="visible" data-on-text="NO" data-off-text="YES"  data-toggle="switch" data-on-color="success" data-off-color="warning" />
			<br/>
			<br/>
			<input type="submit" class="btn btn-success" value="保 存" />
			<a href="{:U(MODULE_NAME.'/Controls/view')}" class="btn btn-danger ">返 回</a>
		</form>
		
	</body>		

</html>
